import { App } from 'vue'

import {
  Clock,
  Iphone,
  Star,
  User,
  Lock,
  UserFilled,
  Wallet,
  Plus,
  Upload,
  Check,
  Close,
  ArrowDown,
  Search,
  Promotion,
  WalletFilled,
  Goblet,
  MapLocation,
  Suitcase,
  ArrowRight,
} from '@element-plus/icons-vue'

const iconModule = [
  User,
  UserFilled,
  Iphone,
  Wallet,
  Star,
  Lock,
  Clock,
  Search,
  Plus,
  Upload,
  Check,
  Close,
  ArrowDown,
  Promotion,
  WalletFilled,
  Goblet,
  MapLocation,
  Suitcase,
  ArrowRight,
]

export default function (app: App) {
  for (const icon of iconModule) {
    app.component(icon.name, icon)
  }
}
